package longshu.data.common.dao;

import org.apache.ibatis.annotations.Options;

/**
 * SoftDeleteDao 软删除(逻辑删除, 更新 yn = 0/false)
 *
 * @author LongShu 2018/01/19
 */
public interface SoftDeleteDao<T> extends DaoMarker {

    // @UpdateProvider(type = SoftDeleteProvider.class, method = "dynamicSQL")
    @Options(useCache = false)
    int softDelete(T record);

    // @UpdateProvider(type = SoftDeleteProvider.class, method = "dynamicSQL")
    @Options(useCache = false)
    int softDeleteByPrimaryKey(Object key);

}
